package net.sf.xoperator.ui.trans;

import java.io.Serializable;

import net.sf.xoperator.rdfxmpp.SPARQLResult;
import net.sf.xoperator.ui.MessageToUser;

/**
 * represent the result of the transformation of a <code>SPARQLResult</code> into a textual representation.
 * @author joerg
 *
 */
public class TransformedResult extends MessageToUser implements Serializable{
	
	private String transfomedResult;
	private SPARQLResult origResult;
	private String storeName;
	
	
	
	public TransformedResult(String transfomedResult, SPARQLResult origResult, String storeName) {
		super();
		this.transfomedResult = transfomedResult;
		this.origResult = origResult;
		this.storeName = storeName;
	}
	public String getStoreName() {
		return this.storeName;
	}
	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}
	
	public SPARQLResult getOrigResult() {
		return this.origResult;
	}
	public void setOrigResult(SPARQLResult origResult) {
		this.origResult = origResult;
	}
	public String getTransfomedResult() {
		return this.transfomedResult;
	}
	public void setTransfomedResult(String transfomedResult) {
		this.transfomedResult = transfomedResult;
	}
	
	@Override
	public String getMessage() {
		return "Store " + this.storeName + " answered: \n" + this.transfomedResult;
	}
	

}
